home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 October / Macformat17.cdr / Shareware City / Developers / SC++ 7.0.3 Update / Release Notes / Process Monitor 7.0.3 READ ME < prev    next >
Encoding:
Text File  |  1994-07-11  |  2.1 KB  |  48 lines  |  [ttro/ttxt]

  1. Process Monitor Changes for Visual Architect 7.0.3
  2. ==============================================
  3. Copyright ©1994 Symantec Corportation. All Rights Reserved.
  4. June 16, 1994
  5.  
  6. Changes made to the way Visual Architect generates document classes will require some source changes to the Process Monitor tutorial in order to get the application to link. These steps are outlined below:
  7.  
  8.  
  9. If you are starting the Process Monitor tutorial for the first time:
  10. ------------------------------------------------------------
  11.  
  12. -    Follow all the documented steps up to and including the code
  13.     generation phase (through step 2, p. 101 in the Visual Architect
  14.     and THINK Class User's Guide)
  15.     
  16. -    Find the file called ItsContents_CProcessListOnly.h (it's in the 
  17.     Source folder with the other generated files) and open it in the 
  18.     editor
  19.     
  20. -    Comment out the line that reads:
  21.         #pragma template CSaver<CCollaborator>
  22.         
  23. -    Continue the tutorial with step 1. on p. 103
  24.  
  25.  
  26. If you are regenerating a finished Process Monitor project:
  27. -----------------------------------------------------
  28.  
  29. -    Remove the file "CSaver_class.cpp" from the project. This file
  30.     won't be generated by Visual Architect 7.0.3--instead it generates
  31.     two files called "CSaver_CProcessListOnly.cpp" and 
  32.     "CSaver_CMain.cpp"
  33.     
  34. -    Find the file called ItsContents_CProcessListOnly.h (it's in the 
  35.     Source folder with the other generated files) and open it in the 
  36.     editor
  37.     
  38. -    Comment out the line that reads:
  39.         #pragma template CSaver<CCollaborator>
  40.  
  41.  
  42.  
  43.  
  44. Why the changes?
  45. ----------------
  46. If you don't comment out the #pragma template expansion, you'll find that you'll get a link error for multiply defined instances of CSaver<CCollaborator>. Typically each document type that you have saves a different object class, and each one instantiates a version of CSaver. In this case, both documents have CCollaborator as their ItsContents class, so they both try to expand the CSaver template. The linker only wants one of them, however, and that's why the error appears.
  47.  
  48. For more details on the changes to Visual Architect in version 7.0.3, refer to the Visual Architect README that came with the 7.0.3 patch.